package cn.kgc.mcartoon.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 验证码图片表
 * </p>
 *
 * @author christopher
 * @since 2021-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mm_image_code")
public class MmImageCodeDO extends Model<MmImageCodeDO> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 图片验证码url
     */
    private String url;

    /**
     * 标识 1-->顺时针旋转270度；2-->顺时针旋转180度；3-->顺时针旋转90度；4-->不需要旋转
     */
    private Integer sign;

    /**
     * type(相同type代表同一张图片)(备注:新增图片的type要按顺序递增)
     */
    private Integer type;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
